package com.ml.structure.linkedlist;

public class HeroNode {
	private int no;
	private String name;
	private HeroNode next;
	public HeroNode(int no, String name) {
		super();
		this.no = no;
		this.name = name;
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public HeroNode getNext() {
		return next;
	}
	public void setNext(HeroNode next) {
		this.next = next;
	}
	@Override
	public String toString() {
		return "HeroNode [no=" + no + ", name=" + name + "]";
	}
	
	
}
